﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;

namespace EditAnyString.Web.Controllers
{
    public class AccountController : Controller
    {
		public ActionResult LogOn()
		{
			FormsAuthentication.SetAuthCookie( "admin", false );
			return RedirectToAction( "Index", "Home" );
		}

		public ActionResult LogOff()
		{
			FormsAuthentication.SignOut();
			return RedirectToAction( "Index", "Home" );
		}

		public ActionResult Profile()
		{
			return View();
		}
    }
}
